This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
If your end users are running a Notes client and you want to call your Java code to modify field data, try putting your code in a Notes agent, and calling it from the PostSave form event:
@Command([RunAgent]; "JavaAgent")
Do you have to use Java for the UI? If not:
1) Get rid of the Swing code and the "implements PropertyChangeListener".
2) Drop the propertyChange method.
3) Drop the Thread.sleep loop (this may be causing your memory problem).
Also, don't attempt to access an object you've already recycled (you're recycling 'doc' at the top of the agent and then accessing it later).